<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>xform</cContentSchemaName>
				<cContentXmlBrief>
					<Content>
						<model class="ewXform">
							<instance>
								<emailer xmlns="http://www.eonic.co.uk/ewcommon/Services">
									<oBodyXML>
										<Items>
											<Name />
											<Company />
											<Website />
											<Telephone />
											<Email />
											<Address />
											<Message />
										</Items>
									</oBodyXML>
									<xsltPath>/ewcommon/xsl/mailer/emailer.xsl</xsltPath>
									<fromName></fromName>
									<fromEmail></fromEmail>
									<recipientEmail>trevor@eonic.co.uk</recipientEmail>
									<SubjectLine>Website Enquiry</SubjectLine>
								</emailer>
							</instance>
							<submission method="post" action="/ewCommon/Services.asmx" SOAPAction="http://www.eonic.co.uk/ewcommon/Services/emailer" id="send" />
							<bind id="emailer" nodeset="emailer">
								<bind id="oBodyXML" nodeset="oBodyXML/Items">
									<bind id="Name" nodeset="Name" required="true()" type="string" />
									<bind id="Company" nodeset="Company" required="false()" type="string" />
									<bind id="Website" nodeset="Website" required="false()" type="string" />
									<bind id="Email" nodeset="Email" required="true()" type="email" />
									<bind id="Telephone" nodeset="Telephone" required="true()" type="string" />
									<bind id="Message" nodeset="Message" required="false()" type="string" />
									<bind id="Address" nodeset="Address" required="false()" type="string" />
								</bind>
								<bind id="Email" nodeset="fromEmail" required="false()" type="string" />
								<bind id="nOffice" nodeset="SubjectLine" required="true()" type="string" />
							</bind>
						</model>
						<group>
							<label>Contact Us</label>
							<input bind="Name" class="required">
								<label>Name</label>
							</input>
							<input bind="Company">
								<label>Company</label>
							</input>
							<input bind="Telephone" class="required">
								<label>Telephone</label>
							</input>
							<input bind="Email" class="required">
								<label>Email</label>
							</input>
							<input bind="Website" appearance="">
								<label>Website</label>
							</input>
							<textarea bind="Address" class="textarea" rows="4">
								<label>Address</label>
							</textarea>
							<textarea bind="Message" class="textarea" rows="4">
								<label>How we can help</label>
							</textarea>
							<submit submission="send" bind="ewCmd" class="principle">
								<label>Send</label>
							</submit>
						</group>		   
					</Content>
				</cContentXmlBrief>
				<cContentXmlDetail/>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
			</tblContent>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind id="cContentName" nodeset="tblContent/cContentName" required="true()" type="string"/>
		<bind id="cContentBody" nodeset="tblContent/cContentXmlBrief/Content" required="false()" type="string"/>
    <bind nodeset="tblContent/cContentXmlBrief/Content">
      <bind id="cFileLocation" nodeset="@contentFile" required="false()" type="string"/>
    </bind>
		<bind id="dPublishDate" nodeset="tblContent/dPublishDate" required="false()" type="string"/>
		<bind id="dExpireDate" nodeset="tblContent/dExpireDate" required="false()" type="string"/>
		<bind id="nStatus" nodeset="tblContent/nStatus" required="true()" type="string"/>
		<bind id="cDescription" nodeset="tblContent/cDescription" required="false()" type="string"/>
		<bind id="bCascade" nodeset="tblContent/bCascade" required="false()" type="string"/>
	</model>
	<group ref="EditContent" class="2col">
		<label>Edit XForm</label>
		<group>
			<group>
				<input bind="nContentKey" class="hidden">
					<label>ContentId</label>
				</input>
				<label>Settings</label>
				<input bind="cContentName" class="required short">
					<label>Text Location</label>
				</input>
				<input bind="dPublishDate" class="calendar short">
					<label>Publish Date</label>
				</input>
				<input bind="dExpireDate" class="calendar short">
					<label>Expire Date</label>
				</input>
				<select1 bind="nStatus" appearance="full" class="required vshort">
					<label>Status</label>
					<item>
						<label>Live</label>
						<value>1</value>
					</item>
					<item>
						<label>Hidden</label>
						<value>0</value>
					</item>
				</select1>
				<select bind="bCascade" appearance="full">
					<label>Cascade to Child Pages</label>
					<item>
						<label/>
						<value>true</value>
					</item>
				</select>
				<input bind="cDescription" class="short">
					<label>Change Notes</label>
				</input>
			</group>
		</group>
		<group>
			<group>
				<label>WARNING!! Updating forms is a specialised task at the moment please contact your Web Developer for Assistance.</label>
				<textarea bind="cContentBody" rows="10" cols="100" class="xml"/>
        <label>Or load form from file</label>
        <input bind="cFileLocation" class="long">
          <label>File Location</label>
        </input>
			</group>
			<submit submission="" ref="ewSubmit" class="principle">
				<label>Save Text</label>
			</submit>
		</group>
	</group>
</Content>
